package collections;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.junit.Test;

public class CollectionPractice {

    @Test
    public void testShuffle() {
        String[] args = {"I", "come", "I", "saw"
                , "I", "left"};
        List<String> list = new ArrayList<String>();
        for (String a : args) {
            list.add(a);
        }
        System.out.println(list);
        //swap randomly
        Collections.shuffle(list);
        System.out.println(list);
    }
}
